CC=gcc
CFLAGS=-c -Wall -g
LDFLAGS=
SOURCES=events.c fncts.c menu.c main.c
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=test1

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.c.o:
	$(CC) $(CFLAGS) $< -o $@
clean:
	rm *.o
